Skip to content

testing: use production environment for e2e tests#1139

Merged
deer-wmde merged 9 commits into
mainfrom
prodForTest
Jun 11, 2026
Merged

testing: use production environment for e2e tests#1139
deer-wmde merged 9 commits into
mainfrom
prodForTest

Conversation

@tarrow

@tarrow tarrow commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

When using the development environment if a request fails the screen is blocked by a helpful debugging message.

I believe the login request that happens in the background regularly fails since we updated passport in the platform api. This then blocks clicking any other elements.

The e2e tests rely on the main branch of api to test against which explains why we transition into status tests failing without merging a PR that had failing status tests.

This commit uses the production environment for running the end to end tests. It also adjusts the npm install step. It retains the development environment for installation and uses npm ci[1] rather than install to make this test more deterministic and use the exact versions of packages specified in the lock file.

Finally this commit also uses a plain docker compose --wait and removes the -d since wait already implies detached mode. [2]

[1] https://docs.npmjs.com/cli/v11/commands/npm-ci
[2] https://docs.docker.com/reference/cli/docker/compose/up/

Bug: T428389

When using the development environment if a request fails
the screen is blocked by a helpful debugging message.

I believe the `login` request that happens in the background
regularly fails since we updated passport in the platform api.

The e2e tests rely on the main branch of api to test against which
explains why we transition into status tests failing without merging
a PR that had failing status tests.

Bug: T428389
@github-actions

Copy link
Copy Markdown

Deployment previews on netlify for branch refs/pull/1139/merge will be at the following locations (when build is done):

@tarrow tarrow marked this pull request as ready for review June 11, 2026 08:02
@deer-wmde

Copy link
Copy Markdown
Contributor

Happy to see this working now 🙌

@deer-wmde deer-wmde merged commit 5a97304 into main Jun 11, 2026
7 of 9 checks passed
@deer-wmde deer-wmde deleted the prodForTest branch June 11, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants